package com.example.demo.service;

import com.example.demo.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created with LXD
 *
 * @author:Luhui
 * @qq:729913162
 * @Date:2018-07-22
 * @Time:22:52
 */
@FeignClient("PROVIDER")
public interface UserService {
    @RequestMapping("find/{id}")
    User findOne(@PathVariable("id") int id);
}
